package com.sy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sy.pojo.Course;
import com.sy.vo.CourseDetailVO;
import com.sy.vo.CourseIndexVO;
import com.sy.vo.CourseVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper extends BaseMapper<Course> {
    Page<CourseVO> findAll(Page<CourseVO> page,@Param("courseName") String courseName);

    List<CourseIndexVO> findSales();

    Page<CourseVO> findAllCourse(Page<CourseVO> page, String courseName);

    CourseDetailVO getCourseDetail(Integer cid);
}
